import { exportUrl } from "@/api/loadMaterial/mesLoadMaterialVerificationDetail"
// 列表头按钮配置
export const operateList = [
  {
    name: $i18n.t("common.export"),
    type: "primary",
    icon: "el-icon-download",
    handleName: "export", //点击时返回的标识
    url: exportUrl,
    //auth: "auth:operlog:export", //权限字段
  },
  // {
  //     name: "新增",
  //     type: "primary",
  //     icon: "el-icon-circle-plus-outline",
  //     handleName: 'add', // 点击时返回的标识
  //     // auth: "auth:user:add", //权限字段
  // },
  // {
  //     name: '删除',
  //     type: 'danger',
  //     icon: 'el-icon-delete',
  //     handleName: 'delete',
  //     isMultiple: true, // isSingle 表示必须选择一项//isMultiple: true, // 表示必须多选
  //     // auth: "auth:user:delete", //权限字段
  // }
];
// 行末按钮配置
export const rowConfig = [
  {
    name: $i18n.t("common.view"),
    type: "primary",
    class: "row-btn-primary",
    handleName: "show", //点击时返回的标识
  },
  // {
  //     name: "修改",
  //     type: "primary",
  //     class: "row-btn-primary",
  //     handleName: "edit", //点击时返回的标识
  // }
];
// 搜索条件配置
export const searchConfig = {
  inline: true,
  formDesc: {
    // packageCode: {
    //   type: "input",
    //   label: $i18n.t("mesLoadMaterialVerificationDetail.packingBoxCode")
    // },
    // boxCode: {
    //   type: "input",
    //   label: $i18n.t("mesLoadMaterialVerificationDetail.boxCode")
    // },
    barcode: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.barcode"),
    },
    batchNo: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.batchNo"),
    },
  },
};
// 新增/删除表单配置
export const formDescDialog = {
  span: 24,
  disabled: true,
  isShowSubmitBtn: false,
  formDesc: {
    // saleCode: {
    //     type: "input",
    //     label: "销售订单编码",
    //     layout:  12,
    //     required: false,
    // },
    planCode: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.productOrder"),
      layout: 12,
      required: false,
    },
    orderCode: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.productWorkOrder"),
      layout: 12,
      required: false,
    },
    packageCode: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.packingBoxCode"),
      layout: 12,
      required: false,
    },
    boxCode: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.boxCode"),
      layout: 12,
      required: false,
    },
    barcode: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.barcode"),
      layout: 12,
      required: false,
    },
    batchNo: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.batchNo"),
      layout: 12,
      required: false,
    },
    unit: {
      type: "input",
      label: $i18n.t("common.unit"),
      layout: 12,
      required: false,
    },
    owner: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.owner"),
      layout: 12,
      required: false,
    },
    version: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.version"),
      layout: 12,
      required: false,
    },
    prodCode: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.prodCode"),
      layout: 12,
      required: false,
    },
    prodName: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.prodName"),
      layout: 12,
      required: false,
    },
    customerCode: {
      type: "input",
      label: $i18n.t("mesLoadMaterialVerificationDetail.customerCode"),
      layout: 12,
      required: false,
    },
    // quantity: {
    //   type: "number",
    //   label: $i18n.t("mesLoadMaterialVerificationDetail.checkCount"),
    //   layout: 12,
    //   required: false
    // },
    remark: {
      type: "textarea",
      label: $i18n.t("common.remark"),
      layout: 24,
      required: false,
    },
  },
};
